package cn.itcast.mq.conf;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: MessageConverter
 * Package: cn.itcast.mq.conf
 * Description:
 *
 * @Author BuTang
 * @Create 2023/12/12 19:40
 * @Version 1.0
 */
@Configuration
public class MessageConverterConf {
    @Bean
    public MessageConverter jsonMessageConverter(){
        return new Jackson2JsonMessageConverter();
    }

}
